<?php
$arrayobject = new ArrayObject();
$arrayobject = $_SESSION['autor_list'];
if(sizeof($arrayobject)>0) {
    ?>
<form action="" name="" method="post">
    <table border="1" align="center" cellpadding="5" cellspacing="0" width="100%">
        <tr>
            <td bgcolor="#151515" align="center" colspan="3"><font color="#FFFFFF">Authors</font></td>
        </tr>
            <?php
            for($iterator = $arrayobject->getIterator();
            $iterator->valid();
            $iterator->next()) {
                echo "<tr>";                
                $objAutorTO = new AutorTO();
                $objAutorTO = $iterator->current();
                echo "<td>".$objAutorTO->getNombre()."</td>";
                echo "<td align='center'><a href='index.php?controller=autor&action=eliminar&id=".$iterator->key()."'>Erase</a></td>";
                echo "</tr>";                
            }

        }else {
            echo "You have not entered an author";
        }
        ?>
    </table>
</form>